<!--
 * @Author: your name
 * @Date: 2021-12-04 12:21:05
 * @LastEditTime: 2021-12-04 12:27:01
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \homeStayMS\rzn-flie\test.vue
-->

<template>
  <section>
    <el-button @click="addNum()"> {{ btnname }} </el-button>
    <h4>新的数据</h4>
    <h4>{{ num }}</h4>
  </section>
</template>

<script>
module.exports = {
  name: 'test',
  data() {
    return {
      btnname: '请点击',
      num: 0,
    };
  },
  methods: {
    addNum() {
      this.num++;
    },
  },
};

// export default {
//   name: 'test',
//   data() {
//     return {
//       btnname: '请点击',
//       num: 0,
//     };
//   },
//   methods: {
//     addNum() {
//       this.num++;
//     },
//   },
// };
</script>
